[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 arc()                   Draw a Circular Arc

 #include   <graphics.h>

 void       far arc(x,y,start,end,rad);
 int        x;
 int        y;
 int        start, end;
 int        rad;

    arc() draws the outline of an arc in the current drawing color.  The
    circular arc is centered at 'x','y' with a radius of 'rad'.  The arc
    travels from 'start' to 'end.

    Returns:    Nothing.

       Note:    'start' and 'end' are in degrees; 0 degrees is a 3
                o'clock.

   -------------------------------- Example ---------------------------------

    The following statements draw arc, a half circle, in the middle of
    the screen.

           #include <graphics.h>

           main()
           {
               int gdriver = DETECT;
               int gmode;

               initgraph(&gdriver,&gmode,"");
               arc(320,150,0,179,50);
               getch();
               closegraph();
           }


See Also: circle() ellipse() getarccoords() pieslice()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson